import { PetUtil } from "./PetUtil";
import { ECareer } from "../../../../../Message/Public/ECareer";
import { Language } from "../../../../../extend/language/Language";
type int = number;
//class PetType
    
    export  class PetType
    {
        

        public static getTypeName(arg1: int): string
        {
            var loc1="";
            if (PetUtil.getCareer(arg1) != ECareer._ECareerPetPhysical) 
            {
                if (PetUtil.getCareer(arg1) != ECareer._ECareerPetMagic) 
                {
                    if (PetUtil.getCareer(arg1) == ECareer._ECareerPetPhysique) 
                    {
                        loc1 = Language.getString(54083);
                    }
                }
                else 
                {
                    loc1 = Language.getString(54082);
                }
            }
            else 
            {
                loc1 = Language.getString(54081);
            }
            return loc1;
        }

        public static getTypeColor(arg1: int): string
        {
            var loc1="";
            if (arg1 == ECareer._ECareerPetPhysical || arg1 == ECareer._ECareerPetHighPhysical) 
            {
                loc1 = "#00ff00";
            }
            else if (arg1 == ECareer._ECareerPetMagic || arg1 == ECareer._ECareerPetHighMagic) 
            {
                loc1 = "#00BEFF";
            }
            if (arg1 == ECareer._ECareerPetPhysique || arg1 == ECareer._ECareerPetHighPhysique) 
            {
                loc1 = "#FF7902";
            }
            return loc1;
        }
    }
